package com.iims.market.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.iims.market.domain.CmisOrder;
import com.iims.oder.vo.request.GroupOrderSearchQuery;
import com.iims.oder.vo.resp.OrderDetailVo;

import java.util.List;

/**
 * @author fanpei
 * @date 2021/7/3 13:35
 */
public interface OrderMapper extends BaseMapper<CmisOrder> {
    /**
     * 获取订单简略详情
     *
     * @param orderId
     * @return
     */
    OrderDetailVo selectOrderSimpletVoById(Long orderId);

    /**
     * 获取订单简略详情列表
     *
     * @param cmisOrder
     * @return
     */
    List<OrderDetailVo> selectOrderSimpleList(CmisOrder cmisOrder);

    List<OrderDetailVo> selectOrderSimpleListByGroup(GroupOrderSearchQuery groupSearchQuery);

    /**
     * 获取指定项目可选订单列表
     *
     * @param proId
     * @return
     */
    List<OrderDetailVo> selectProEnableCmisOrderList(Long proId);


    /**
     * 检测订单使用情况
     *
     * @param orderId
     * @return
     */
    Integer checkCmisOrderUse(Long orderId);

}
